package com.example.demo.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.service.HelloService;

/**
 * 测试Controller
 * 
 * @author binbin.a.zhang
 *
 */
@RestController
public class RibbonController {

	@Autowired
	HelloService helloService;

	@RequestMapping(value = "/ribbon-consumer", method = RequestMethod.GET)
	public String helloConsumer() {
		return helloService.helloService();
	}

	@RequestMapping(value = "/ribbon-consumer/name/{name}", method = RequestMethod.GET)
	public String getName() {
		return helloService.helloService();
	}
}
